const router = require('../router');

router.post('/getEditorComponent', async function(req, res) {
    res.json({
        "success": true,
        "msg": "成功",
        "code": "0",
        "data": {
            "menuList": [
                {
                    "menuId": "1",
                    "menuName": "组件",
                    "parentId": "0",
                    "level": "1",
                    "sort": "1",
                    "key": null,
                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                    "childMenuList": [
                        {
                            "menuId": "2",
                            "menuName": "悬浮组件",
                            "parentId": "1",
                            "level": "2",
                            "sort": "1",
                            "key": null,
                            "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                            "childMenuList": [
                                {
                                    "menuId": "39",
                                    "menuName": "网络健康检测-1",
                                    "parentId": "2",
                                    "level": "3",
                                    "sort": "1",
                                    "key": "reinsurance_network_health_monitoring",
                                    "coverAddress": "selfvis-view-editor/lcd-component-reinsurance_network_health_monitoring.png",
                                    "childMenuList": null
                                },
                                {
                                    "menuId": "40",
                                    "menuName": "故障电路-1",
                                    "parentId": "2",
                                    "level": "3",
                                    "sort": "2",
                                    "key": "fault_circuit",
                                    "coverAddress": "selfvis-view-editor/lcd-component-fault_circuit.png",
                                    "childMenuList": null
                                },
                                {
                                    "menuId": "41",
                                    "menuName": "日期时间-1",
                                    "parentId": "2",
                                    "level": "3",
                                    "sort": "3",
                                    "key": "reinsurance_date_time",
                                    "coverAddress": "selfvis-view-editor/lcd-component-reinsurance_date_time.png",
                                    "childMenuList": null
                                }
                            ]
                        },
                        {
                            "menuId": "3",
                            "menuName": "画板组件",
                            "parentId": "1",
                            "level": "2",
                            "sort": "2",
                            "key": null,
                            "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                            "childMenuList": [
                                {
                                    "menuId": "6",
                                    "menuName": "数据概览类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "1",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": [
                                        {
                                            "menuId": "12",
                                            "menuName": "电路数据-1",
                                            "parentId": "6",
                                            "level": "4",
                                            "sort": "1",
                                            "key": "circuit_overview1",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_overview1.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "27",
                                            "menuName": "电路数据-2",
                                            "parentId": "6",
                                            "level": "4",
                                            "sort": "2",
                                            "key": "topo_overview1",
                                            "coverAddress": "selfvis-view-editor/lcd-component-topo_overview1.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "18",
                                            "menuName": "电路数据-3",
                                            "parentId": "6",
                                            "level": "4",
                                            "sort": "3",
                                            "key": "circuit_data",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_data.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "31",
                                            "menuName": "电路质量概况-1",
                                            "parentId": "6",
                                            "level": "4",
                                            "sort": "4",
                                            "key": "circuit_quality_overview",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_quality_overview.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "32",
                                            "menuName": "电路质量分析-1",
                                            "parentId": "6",
                                            "level": "4",
                                            "sort": "5",
                                            "key": "circuit_quality_analysis",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_quality_analysis.png",
                                            "childMenuList": null
                                        }
                                    ]
                                },
                                {
                                    "menuId": "7",
                                    "menuName": "重保统计类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "2",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": [
                                        {
                                            "menuId": "15",
                                            "menuName": "重保统计-1",
                                            "parentId": "7",
                                            "level": "4",
                                            "sort": "1",
                                            "key": "reinsurance_statistics1",
                                            "coverAddress": "selfvis-view-editor/lcd-component-reinsurance_statistics1.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "35",
                                            "menuName": "重保任务-1",
                                            "parentId": "7",
                                            "level": "4",
                                            "sort": "2",
                                            "key": "reinsurance_task_list",
                                            "coverAddress": "selfvis-view-editor/lcd-component-reinsurance_task_list.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "36",
                                            "menuName": "重保任务-2",
                                            "parentId": "7",
                                            "level": "4",
                                            "sort": "3",
                                            "key": "reinsurance_statistics2",
                                            "coverAddress": "selfvis-view-editor/lcd-component-reinsurance_statistics2.png",
                                            "childMenuList": null
                                        }
                                    ]
                                },
                                {
                                    "menuId": "8",
                                    "menuName": "告警统计类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "3",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": [
                                        {
                                            "menuId": "16",
                                            "menuName": "告警统计-1",
                                            "parentId": "8",
                                            "level": "4",
                                            "sort": "1",
                                            "key": "alarm_statistics1",
                                            "coverAddress": "selfvis-view-editor/lcd-component-alarm_statistics1.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "30",
                                            "menuName": "告警统计-2",
                                            "parentId": "8",
                                            "level": "4",
                                            "sort": "2",
                                            "key": "topo_pieBar",
                                            "coverAddress": "selfvis-view-editor/lcd-component-topo_pieBar.png",
                                            "childMenuList": null
                                        }
                                    ]
                                },
                                {
                                    "menuId": "9",
                                    "menuName": "性能监控类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "4",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": [
                                        {
                                            "menuId": "11",
                                            "menuName": "性能监控-1",
                                            "parentId": "9",
                                            "level": "4",
                                            "sort": "1",
                                            "key": "performance_monitor1",
                                            "coverAddress": "selfvis-view-editor/lcd-component-performance_monitor1.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "33",
                                            "menuName": "性能监控-2",
                                            "parentId": "9",
                                            "level": "4",
                                            "sort": "2",
                                            "key": "performance_overview",
                                            "coverAddress": "selfvis-view-editor/lcd-component-performance_overview.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "34",
                                            "menuName": "性能监控-3",
                                            "parentId": "9",
                                            "level": "4",
                                            "sort": "3",
                                            "key": "performance_detail",
                                            "coverAddress": "selfvis-view-editor/lcd-component-performance_detail.png",
                                            "childMenuList": null
                                        }
                                    ]
                                },
                                {
                                    "menuId": "10",
                                    "menuName": "时间呈现类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "5",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": null
                                },
                                {
                                    "menuId": "17",
                                    "menuName": "工单跟踪类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "6",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": [
                                        {
                                            "menuId": "19",
                                            "menuName": "开通工单进展-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "1",
                                            "key": "open_work_order",
                                            "coverAddress": "selfvis-view-editor/lcd-component-open_work_order.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "20",
                                            "menuName": "电路开通统计-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "2",
                                            "key": "circuit_open_analysis",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_open_analysis.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "21",
                                            "menuName": "工单数据-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "3",
                                            "key": "work_order_data",
                                            "coverAddress": "selfvis-view-editor/lcd-component-work_order_data.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "22",
                                            "menuName": "故障工单进展-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "4",
                                            "key": "fault_work_order",
                                            "coverAddress": "selfvis-view-editor/lcd-component-fault_work_order.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "23",
                                            "menuName": "电路故障统计-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "5",
                                            "key": "circuit_fault_analysis",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_fault_analysis.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "25",
                                            "menuName": "割接工单进展-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "7",
                                            "key": "cut_work_order",
                                            "coverAddress": "selfvis-view-editor/lcd-component-cut_work_order.png",
                                            "childMenuList": null
                                        },
                                        {
                                            "menuId": "26",
                                            "menuName": "电路割接统计-1",
                                            "parentId": "17",
                                            "level": "4",
                                            "sort": "8",
                                            "key": "circuit_cutting_analysis",
                                            "coverAddress": "selfvis-view-editor/lcd-component-circuit_cutting_analysis.png",
                                            "childMenuList": null
                                        }
                                    ]
                                },
                                {
                                    "menuId": "28",
                                    "menuName": "拓扑资源类",
                                    "parentId": "3",
                                    "level": "3",
                                    "sort": "7",
                                    "key": null,
                                    "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                                    "childMenuList": [
                                        {
                                            "menuId": "29",
                                            "menuName": "拓扑资源-1",
                                            "parentId": "28",
                                            "level": "4",
                                            "sort": "1",
                                            "key": "topo_resource1",
                                            "coverAddress": "selfvis-view-editor/lcd-component-topo_resource1.png",
                                            "childMenuList": null
                                        }
                                    ]
                                }
                            ]
                        },
                        {
                            "menuId": "4",
                            "menuName": "中心组件",
                            "parentId": "1",
                            "level": "2",
                            "sort": "3",
                            "key": null,
                            "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                            "childMenuList": [
                                {
                                    "menuId": "14",
                                    "menuName": "中心地图-1",
                                    "parentId": "4",
                                    "level": "3",
                                    "sort": "1",
                                    "key": "map1",
                                    "coverAddress": "selfvis-view-editor/lcd-component-map1.png",
                                    "childMenuList": null
                                },
                                {
                                    "menuId": "37",
                                    "menuName": "中心拓扑-1",
                                    "parentId": "4",
                                    "level": "3",
                                    "sort": "2",
                                    "key": "topo_centerview",
                                    "coverAddress": "selfvis-view-editor/lcd-component-topo_centerview.png",
                                    "childMenuList": null
                                }
                            ]
                        },
                        {
                            "menuId": "5",
                            "menuName": "背景组件",
                            "parentId": "1",
                            "level": "2",
                            "sort": "4",
                            "key": null,
                            "coverAddress": "364583956093:gesp/37c0f6f2-12f1-4320-8630-cf40001d7a04_04 gettyimages-513864291_resized.jpg",
                            "childMenuList": [
                                {
                                    "menuId": "13",
                                    "menuName": "背景-1",
                                    "parentId": "5",
                                    "level": "2",
                                    "sort": "1",
                                    "key": "bg1",
                                    "coverAddress": "selfvis-view-editor/lcd-component-bg1.png",
                                    "childMenuList": null
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        "exName": null,
        "extInfo": null
    })
})

router.post('/uploadViewCover', async function(req, res) {

})

router.post('/deleteViewCover', async function(req, res) {

})

router.post('/editConfiguredViews', async function(req, res) {
    
})

module.exports = router;